Anypoint Monitoring Archive API
API Metric Example
Archive API allows downloading of enhanced API Metrics. See Anypoint Monitoring Documentation for information on the supported enhanced API metric measurements.
...
{"format":"v2","time":1585082947062,"type":"api\_summary\_metric","commons":{"deployment\_type":"RTF","api\_id":"204393","cluster\_id":"rtf","env\_id":"env","public\_ip":"127.0.0.1","org\_id":"org","worker\_id":"worker-1"},"events":[{"response\_size.max":2,"request\_size.min":6,"status\_code":"200","method":"POST","response\_time.max":4,"api\_version\_id":"223337","response\_size.count":1,"response\_size.sum":2,"response\_time.min":4,"request\_size.count":1,"api\_version":"v1:223337","request\_size.sos":36,"client\_id":"eb30101d7394407ea86f0643e1c63331","response\_time.count":1,"response\_time.sum":4,"request\_size.max":6,"request\_disposition":"processed","response\_time.sos":16,"api\_name":"groupId:6046b96d-c9aa-4cb2-9b30-90a54fc01a7b:assetId:policy\_sla\_rate\_limit","response\_size.min":2,"request\_size.sum":6,"response\_size.sos":4}],"metadata":{"batch\_id":0,"aggregated":true,"limited":false,"producer\_name":"analytics-metrics-collector-mule3","producer\_version":"2.2.2-SNAPSHOT"}}
{"format":"v2","time":1585082947068,"type":"api\_client\_ip\_metric","commons":{"deployment\_type":"RTF","api\_id":"204393","cluster\_id":"rtf","env\_id":"env","public\_ip":"127.0.0.1","org\_id":"org","worker\_id":"worker-1"},"events":[{"response\_size.max":2,"request\_size.min":6,"status\_code":"200","method":"POST","response\_time.max":4,"api\_version\_id":"223337","response\_size.count":1,"response\_size.sum":2,"response\_time.min":4,"request\_size.count":1,"api\_version":"v1:223337","request\_size.sos":36,"client\_id":"eb30101d7394407ea86f0643e1c63331","response\_time.count":1,"remote\_host":"81.17.62.205","response\_time.sum":4,"request\_size.max":6,"request\_disposition":"processed","response\_time.sos":16,"api\_name":"groupId:6046b96d-c9aa-4cb2-9b30-90a54fc01a7b:assetId:policy\_sla\_rate\_limit","response\_size.min":2,"request\_size.sum":6,"response\_size.sos":4}],"metadata":{"batch\_id":0,"aggregated":true,"limited":false,"producer\_name":"analytics-metrics-collector-mule3","producer\_version":"2.2.2-SNAPSHOT"}}
{"format":"v2","time":1585082947070,"type":"api\_path\_metric","commons":{"deployment\_type":"RTF","api\_id":"204393","cluster\_id":"rtf","env\_id":"env","public\_ip":"127.0.0.1","org\_id":"org","worker\_id":"worker-1"},"events":[{"response\_size.max":2,"request\_size.min":6,"status\_code":"200","method":"POST","response\_time.max":4,"api\_version\_id":"223337","response\_size.count":1,"response\_size.sum":2,"response\_time.min":4,"request\_size.count":1,"api\_version":"v1:223337","request\_size.sos":36,"client\_id":"eb30101d7394407ea86f0643e1c63331","response\_time.count":1,"response\_time.sum":4,"request\_size.max":6,"request\_disposition":"processed","path":"/API/X/policy\_sla\_rate\_limit/X","response\_time.sos":16,"api\_name":"groupId:6046b96d-c9aa-4cb2-9b30-90a54fc01a7b:assetId:policy\_sla\_rate\_limit","response\_size.min":2,"request\_size.sum":6,"response\_size.sos":4}],"metadata":{"batch\_id":0,"aggregated":true,"limited":false,"producer\_name":"analytics-metrics-collector-mule3","producer\_version":"2.2.2-SNAPSHOT"}}
{"format":"v2","time":1585082947061,"type":"api\_summary\_metric","commons":{"deployment\_type":"RTF","api\_id":"204393","cluster\_id":"rtf","env\_id":"env","public\_ip":"127.0.0.1","org\_id":"org","worker\_id":"worker-1"},"events":[{"response\_size.max":34,"request\_size.min":3,"status\_code":"401","policy\_id":"203140","method":"PUT","response\_time.max":5,"api\_version\_id":"223337","response\_size.count":1,"response\_size.sum":34,"response\_time.min":5,"policy\_name":"Rate Limiting SLA Based","request\_size.count":1,"api\_version":"v1:223337","request\_size.sos":9,"response\_time.count":1,"response\_time.sum":5,"request\_size.max":3,"request\_disposition":"blocked","response\_time.sos":25,"api\_name":"groupId:6046b96d-c9aa-4cb2-9b30-90a54fc01a7b:assetId:policy\_sla\_rate\_limit","response\_size.min":34,"request\_size.sum":3,"response\_size.sos":1156},{"response\_size.max":0,"request\_size.min":0,"status\_code":"429","policy\_id":"203140","method":"GET","response\_time.max":1,"api\_version\_id":"223337","response\_size.count":1,"response\_size.sum":0,"response\_time.min":1,"policy\_name":"Rate Limiting SLA Based","request\_size.count":1,"api\_version":"v1:223337","request\_size.sos":0,"client\_id":"eb30101d7394407ea86f0643e1c63331","response\_time.count":1,"response\_time.sum":1,"request\_size.max":0,"request\_disposition":"blocked","response\_time.sos":1,"api\_name":"groupId:6046b96d-c9aa-4cb2-9b30-90a54fc01a7b:assetId:policy\_sla\_rate\_limit","response\_size.min":0,"request\_size.sum":0,"response\_size.sos":0}],"metadata":{"batch\_id":0,"aggregated":true,"limited":false,"producer\_name":"analytics-metrics-collector-mule3","producer\_version":"2.2.2-SNAPSHOT"}}
{"format":"v2","time":1585082947064,"type":"api\_client\_ip\_metric","commons":{"deployment\_type":"RTF","api\_id":"204393","cluster\_id":"rtf","env\_id":"env","public\_ip":"127.0.0.1","org\_id":"org","worker\_id":"worker-1"},"events":[{"response\_size.max":34,"request\_size.min":3,"status\_code":"401","policy\_id":"203140","method":"PUT","response\_time.max":5,"api\_version\_id":"223337","response\_size.count":1,"response\_size.sum":34,"response\_time.min":5,"policy\_name":"Rate Limiting SLA Based","request\_size.count":1,"api\_version":"v1:223337","request\_size.sos":9,"response\_time.count":1,"remote\_host":"81.17.62.205","response\_time.sum":5,"request\_size.max":3,"request\_disposition":"blocked","response\_time.sos":25,"api\_name":"groupId:6046b96d-c9aa-4cb2-9b30-90a54fc01a7b:assetId:policy\_sla\_rate\_limit","response\_size.min":34,"request\_size.sum":3,"response\_size.sos":1156},{"response\_size.max":0,"status\_code":"429","policy\_id":"203140","api\_version\_id":"223337","response\_size.count":1,"response\_time.min":1,"client\_id":"eb30101d7394407ea86f0643e1c63331","response\_time.sum":1,"request\_size.max":0,"request\_disposition":"blocked","response\_time.sos":1,"response\_size.min":0,"response\_size.sos":0,"request\_size.min":0,"method":"GET","response\_time.max":1,"response\_size.sum":0,"policy\_name":"Rate Limiting SLA Based","request\_size.count":1,"api\_version":"v1:223337","request\_size.sos":0,"response\_time.count":1,"remote\_host":"81.17.62.205","api\_name":"groupId:6046b96d-c9aa-4cb2-9b30-90a54fc01a7b:assetId:policy\_sla\_rate\_limit","request\_size.sum":0}],"metadata":{"batch\_id":0,"aggregated":true,"limited":false,"producer\_name":"analytics-metrics-collector-mule3","producer\_version":"2.2.2-SNAPSHOT"}}
{"format":"v2","time":1585082947064,"type":"api\_client\_ip\_metric","commons":{"deployment\_type":"RTF","api\_id":"204458","cluster\_id":"rtf","env\_id":"env","public\_ip":"127.0.0.1","org\_id":"org","worker\_id":"worker-1"},"events":[{"response\_size.max":2,"request\_size.min":0,"status\_code":"200","method":"GET","response\_time.max":6,"api\_version\_id":"223412","response\_size.count":3,"response\_size.sum":6,"response\_time.min":4,"request\_size.count":3,"api\_version":"v1:223412","request\_size.sos":0,"client\_id":"b66b4ef4d0764257a9c5aafc0b17ccb3","response\_time.count":3,"remote\_host":"81.17.62.205","response\_time.sum":15,"request\_size.max":0,"request\_disposition":"processed","response\_time.sos":77,"api\_name":"groupId:6046b96d-c9aa-4cb2-9b30-90a54fc01a7b:assetId:policy\_client\_id\_enforcement","response\_size.min":2,"request\_size.sum":0,"response\_size.sos":12},{"response\_size.max":80,"request\_size.min":5,"status\_code":"403","policy\_id":"203196","method":"POST","response\_time.max":18,"api\_version\_id":"223412","response\_size.count":1,"response\_size.sum":80,"response\_time.min":18,"policy\_name":"Client Id Enforcement","request\_size.count":1,"api\_version":"v1:223412","request\_size.sos":25,"response\_time.count":1,"remote\_host":"81.17.62.205","response\_time.sum":18,"request\_size.max":5,"request\_disposition":"blocked","response\_time.sos":324,"api\_name":"groupId:6046b96d-c9aa-4cb2-9b30-90a54fc01a7b:assetId:policy\_client\_id\_enforcement","response\_size.min":80,"request\_size.sum":5,"response\_size.sos":6400}],"metadata":{"batch\_id":0,"aggregated":true,"limited":false,"producer\_name":"analytics-metrics-collector-mule3","producer\_version":"2.2.2-SNAPSHOT"}}
...